package app

import (
	"context"
	"log"
)

// App struct
type app struct {
	Ctx context.Context
}

var App = &app{}

// startup is called when the app starts. The context is saved
// so we can call the runtime methods
func (a *app) Startup(ctx context.Context) {
	a.Ctx = ctx
}

func (a *app) Shutdown(_ context.Context) {
	log.Println("Shutting down...")
}
